﻿using D.Wx.Dtos;
using D.Wx.Entities;

namespace D.Wx.IRepository
{
    public interface ISysPlatformRepository
    {
        /// <summary>
        /// 添加一条数据
        /// </summary>
        /// <returns></returns>
        Task<int> Add(SysPlatformEntity model, SysDwzEntity sysDwzEntity);

        /// <summary>
        /// 删除多条数据
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> Delete(List<string> ids);

        /// <summary>
        /// 删除多条数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SysPlatformEntity> Get(string id);

        /// <summary>
        /// 修改一条数据
        /// </summary>
        /// <returns></returns>
        Task<int> Update(SysPlatformEntity model);

        /// <summary>
        /// 获取列表
        /// </summary>
        /// <returns></returns>
        Task<List<SysPlatformEntity>> GetList();

        /// <summary>
        /// 数据是否存在
        /// </summary>
        /// <returns></returns>
        Task<bool> Exists(string uuid);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pageQuery"></param>
        /// <returns></returns>
        Task<PageModel<SysPlatformEntityOutput>> QueryPage(SysPlatformEntityQuery pageQuery);
    }
}
